package j06niming;
abstract class C1{
    abstract void f1();
}
class C2 extends C1{
    @Override
    void f1() {
        System.out.println(1111);
    }
}
public class J1 {
    public static void main(String[] args) {
        C2 c2 = new C2();
        c2.f1();
        System.out.println("=====");
        //匿名的
        C1 c1 = new C1(){
            void f1() {
                System.out.println("111-2");
            }
        };

        c1.f1();
    }
}
